import java.util.Comparator;


public class Student {
	Long id;
	String name;
	 Student(Long id,String name){
		this.id=id;
		this.name=name;
	}
	 
	 public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String toString(){
	 return "id="+id+"\tname="+name+"\n";
	 }
	@Override
	public int hashCode(){
		int hash=17;
		hash=hash*31+(name==null?0:name.hashCode());
		hash=hash*31+(id==0?0:id.hashCode());
		return hash;
	}
	@Override
	
	public boolean equals(Object o){
		if(!(o instanceof Student)){	
		return false;
		}
		else{
			Student stu=(Student)o;
			boolean val=(stu.name.equals(this.name)&& stu.id==this.id);
		return val;
		}
		}
	
	
	}





